<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
  <meta name="blog-uid" content="{{ blogUID }}">
  <meta name="blog-name" content="{{ blogName }}">
  <meta name="current-user" content="{{ currentUser }}">
  <link rel="stylesheet" href="/static/blog/dark/common.css">
  {{>styles}}
  <style>
    [v-cloak] {
      display: none
    }
  </style>
  <title>{{ title }} - {{ blogName }} - 洛谷博客</title>
</head>

<body>
  <div>

    <div v-cloak class="ui borderless main menu">
      <div class="ui text container">
        <a href="." class="header item">
          首页
        </a>
        <a href="." class="item">文章</a>
        {{#isBlogAdmin}}
        <a href="{{ luoguAddress }}/blogAdmin" class="right item">管理后台</a>
        {{/isBlogAdmin}}
      </div>
    </div>

    {{>content}}
  </div>
  <script>
    var BlogGlobals = {
      blogName: document.querySelector('meta[name=blog-name]').getAttribute('content'),
      blogUID: parseInt(document.querySelector('meta[name=blog-uid]').getAttribute('content')),
      currentUser: parseInt(document.querySelector('meta[name=current-user]').getAttribute('content')),
      luoguAddress: '{{ luoguAddress }}',
      picAddress: '{{ picAddress }}',
      blogSubtitle: '{{ blogSubtitle }}'
    }
  </script>
  <script src="/static/blog/dark/common.js"></script>
  {{>scripts}}
</body>

</html>